package com.isoft.service.tableservice;

import com.isoft.dao.tabledao.DfmeRtneDao;
import com.isoft.entity.tableentity.dfme_rtne.DfmeRtneMsg;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;

@Service
@Slf4j
public class DfmeRtneService {
    @Autowired
    DfmeRtneDao dfmeRtneDao;
    Timestamp create_time = new Timestamp(System.currentTimeMillis());
    public int insertmsg(DfmeRtneMsg dfmeRtneMsg) throws Exception{
        dfmeRtneDao.insertMeta(create_time,dfmeRtneMsg.getDfmeRtneMeta());
        return dfmeRtneDao.insertDflt(dfmeRtneMsg.getDfmeRtneMeta().getSeqn(),create_time,dfmeRtneMsg.getDfmeRtneDflt());

    }
      
}
